import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EPrefix
    
    export  class EPrefix
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EPrefix
        {
            return new EPrefix(arg1);
        }

        public static __read(arg1: SerializeStream): EPrefix
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 15) 
            {
                throw new MarshalException();
            }
            return EPrefix.convert(loc1);
        }

        public static /* const */_EPrefixNormal: int=0;

        public static /* const */_EPrefixGood: int=1;

        public static /* const */_EPrefixRefine: int=2;

        public static /* const */_EPrefixExcellent: int=3;

        public static /* const */_EPrefixPerfect: int=4;

        public static /* const */_EPrefixHoly: int=5;

        public static /* const */_EPrefixWuShuang: int=6;

        public static /* const */_EPrefixChuanShuo: int=7;

        public static /* const */_EPrefixHongMeng: int=8;

        public static /* const */_EPrefixHunDun: int=9;

        public static /* const */_EPrefixNiePan: int=10;

        public static /* const */_EPrefixLunHui: int=11;

        public static /* const */_EPrefixChongSheng: int=12;

        public static /* const */_EPrefixKaiTian: int=13;

        public static /* const */_EPrefixPiDi: int=14;

        public /* var */__value: int;
    }
